package chapter07.chapter7_1_Move_Method.ver03;

public class AccountType {

    public boolean isPremium() {
        return false;
    }

    double overdraftCharge(int _daysOverdrawn) {
        if (this.isPremium()) {
            double result = 10;
            if (_daysOverdrawn > 7) {
                result += (_daysOverdrawn - 7) * 0.85;
            }
            return result;
        } else {
            return _daysOverdrawn * 1.75;
        }
    }
}
